package com.guarantee.server.common.constant;

/**
 * @Description 用户权限redis常量
 * @Author future
 * @Date 2019/6/24
 * @Version Copyright (c) 2019,安徽阡陌网络科技有限公司 All rights reserved.
 */
public class UpmsRedisKeyConstants {
    /**
     * 中国区域  key: RegionDTO
     */
    public static final String CHINA_REGION = "china_region";

    /**
     * user token
     */
    public static final String USER_TOKEN = "user_token";

    /**
     * mobile code
     */
    public static final String MOBILE_CODE = "mobile_code";

    /**
     * type 值 子项目值 获取子项目名称
     * { type : {  value : {  子value: 子label ...} } }
     * 子列表 type + value =>子列表键值对 格式如：{key:{key:{{key:value}}}}
     */
    public static final String DICT_CHILDREN = "dict:children";

    /**
     * type 值 获取名称
     * { type : {  value : label } }
     * 列表 type => 键值对 格式如：{key:{key:value}}
     */
    public static final String DICT_LABEL_BY_VALUE = "dict:value";

    /**
     * type 值 获取队形
     * { type : {  value : obj } }
     * 列表 type => 键值对 格式如：{key:{key:obj}}
     */
    public static final String DICT_OBJ_BY_VALUE = "dict:value:obj";

    /**
     * 通过type和code获取值
     * { type : {  code : value } }
     * 通过具体code找value 列表 type => 键值对(code:value) 格式如：{key:{key:value}}
     */
    public static final String DICT_LABEL_BY_CODE = "dict:code";

    /**
     * 通过type和code获取值
     * { type : {  label : value } }
     * 通过具体label找value 列表 type => 键值对(label:value) 格式如：{key:{key:value}}
     */
    public static final String DICT_LABEL_BY_LABEL = "dict:label";

    /**
     * 通过type获取多层子列表
     * {type : [ {code:xxx, label:xxx, value:ddd, items:[...] } ] }
     * 列表 type => 键值对 格式如：{key:[obj]}
     */
    public static final String DICT_CHILDREN_ALL = "dict:children-all";

    /**
     * 通过value获取label
     */
    public static final String CONFIG_VALUE_BY_LABEL_KEY = "config:value";

    /**
     * 通过value获取label
     */
    public static final String CONFIG_CHILDREN_ALL_KEY = "config:children-all";

    /**
     * 通过value获取label
     */
    public static final String CONFIG_OPEN_VALUE_BY_LABEL = "config:open:value";

    /**
     * 通过value获取label
     */
    public static final String CONFIG_OPEN_CHILDREN_ALL = "config:open:children-all";

    /**
     * captcha code
     */
    public static final String CAPTCHA_CODE = "captcha_code_";

    /**
     * 缓存所有的客户端
     */
    public static final String CACHE_ALL_CLIENT = CommonConstants.PLATFORM + "client:list";
}
